<template>
</template>
<script>
import { mapGetters } from "vuex";
import { checkPhone, checkpw } from "common/utils";

export default {
  data() {
    return {};
  },
  methods: {},
  computed: {
    ...mapGetters(["type", "phone"]),
  },
  created() {
    if (!checkPhone(this.phone)) {
      this.$router.push({ path: "/doctor/loginPhone" });
    } else if (this.type == "20") {
      this.$router.push({ path: "/doctor/home" }); //doctor
    } else if (this.type == "21") {
      this.$router.push({ path: "/question/list" }); //crc
    } else {
      this.$router.push({ path: "/personalCenter" });
    }
  },
};
</script>
